import javax.swing.JFrame;

public class Rain extends JFrame {

    private RainCanvas canvas = new RainCanvas(1366, 768);

    // private RainCanvas canvas = new RainCanvas(800, 768);

    public Rain() {
        super("Test");
        setUndecorated(true);
        setExtendedState(JFrame.MAXIMIZED_BOTH);
        setVisible(true);
        canvas = new RainCanvas(this.getWidth(), this.getHeight());
        // canvas = new RainCanvas(800,600);
        getContentPane().add(canvas);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    }

    public static void main(String[] args) {
        Rain test = new Rain();
        test.canvas.startRain();
    }
}